export default defineAppConfig({
  pages: process.env.APP_MODE === 'merchant'
    ? ['merchant/pages/index/index', 'merchant/pages/message/index', 'merchant/pages/function/index', 'merchant/pages/mine/index']
    : ['user/pages/index/index'],
  subPackages: [
    {
      root: 'user',
      pages: [
        'pages/index/index',
        'pages/buy/index',
        'pages/service/index',
        'pages/cart/index',
        'pages/mine/index',
        'pages/payment/index',
        'pages/address/index',
      ]
    },
    {
      root: 'merchant',
      pages: ['pages/index/index']
    }
  ],
  window: {
    backgroundTextStyle: 'light',
    navigationBarBackgroundColor: '#fff',
    navigationBarTitleText: process.env.APP_MODE === 'merchant' ? '商家中心' : '用户中心',
    navigationBarTextStyle: 'black'
  }
})
